package se.sweco.ws.impl;

public class TrafficData implements Comparable<TrafficData>
{
    public Coord startCoord, endCoord;
    public double   time;
    public short reliability;

	@Override
	public int compareTo(TrafficData o) {
		return (int) (this.startCoord.lat - o.startCoord.lat);
	}
	
	public String toString() {
		return startCoord + " - " + endCoord + " [" + time + ", " + reliability + "]";
	}
}